package oop.day06.homework;

public class TestStudent {
    public static void main(String[] args) {
        CreditCarPayment creditCarPayment = new CreditCarPayment();
        creditCarPayment.pay(900);

        PayPalPayment payPalPayment = new PayPalPayment();
        payPalPayment.pay(1200);



        Dog dog = new Dog();
        dog.name="旺财";
        dog.makesound();
        dog.introdece();

        Cat cat = new Cat();
        cat.name="小白";
        cat.introdece();
        cat.makesound();


     Student s1=   new Student("2024112","张小帅");
     s1.setScore(20);
     System.out.println(s1.score);
     System.out.println(s1.getScore());
     s1.printinfo();

     Student s2 = new Student("20251010","莉莉");
     s2.printinfo();
     s2.setScore(98);
     System.out.println(s2.getScore());
     s2.printinfo();

    }
}
